<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>{{ $setData->webname }}</title>
		<link href="reception/css/common.css" rel="stylesheet" type="text/css" />
		<link href="reception/css/index.css?v=1.0.3" rel="stylesheet" type="text/css" />
		<link href="reception/css/web.css?v=1.0.1" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="reception/js/jquery.min.js" ></script>
		<!--cases-->
		<script type="text/javascript" src="reception/js/pic.js"></script>

	</head>

	<body>
		@include('reception/head')
		<div class="clear"></div>
		<div class="main">
			<div id="left">
				<div class="menu">
					<h2>资料下载</h2>
					<ul class="part">
						@foreach ($type as $te)
						<li>
							<a href="javascript:void(0);" onclick="compMove({{ $te->id }},'{{ $te->catname }}')">
								{{ $te->catname }}
							</a>
						</li>
						@endforeach
					</ul>
				</div><!--menu-->
				<div class="contact_left">
					<h2>联系我们</h2>
					<div class="tel" >
						<p>
							地　址：{{ $setData->addr }}
						</p>
						<p>
							电　话：{{ $setData->tel_ }}
						</p>
						<p>
							传　真：{{ $setData->fax_ }}
						</p>
						<p>
							邮　箱：{{ $setData->emial_ }}
						</p>
						<p>
							主　页：www.trulycom.com
						</p>
						<p>
							主　营：{{ $setData->webkeywork }}
						</p>
					</div>
				</div>
			</div><!--left-->
			<div id="right">
				<div class="position">
					<span>您的位置：
					<a href="{{ url('/') }}">
						首页&nbsp;>
					</a>{{ $type[0]['catname'] }}</span>资料下载
				</div>
				<div class="web_box">
					<div class="content">
						<ul class="news">
							@foreach ($data as $sll)
							<li>
								<a href="{{ $sll->pdf }}">
									<span style="color: #008855;">{{ $sll->updated_at }}   下载</span>{{ $sll->name }}
								</a>
							</li>
							@endforeach
						</ul>
					</div><!--content end-->
				</div>
			</div>
			<div class="clear"></div>
		</div>
		@include('reception/tials')
	</body>
	<script>
		function compMove(type,name){
			$.post("{{ url('downsget') }}",{'_token':'{{csrf_token()}}','type':type},
				function(data){
					var obj = eval('(' + data + ')');
					var state = obj.state;
					var datas = obj.data;
					var temp = "";
					temp += '<div class="position">';
					temp += '<span>您的位置：';
					temp += '<a href="{{ url('/') }}">';
					temp += ' 首页&nbsp;></a>';
					temp += ' ' + name;
					temp += '</span>资料下载</div>';
					temp += '<div class="web_box"><div class="content"><ul class="news">';
					for(i in datas){
						temp += '<li><a href="'+datas[i].pdf+'"><span style="color: #008855;">'+datas[i].updated_at+'   下载</span>'+datas[i].name+'</a></li>';
					}
					temp += '</ul></div></div>';
					$("#right").html(temp);
		        });
		}
	</script>
</html>